{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import urllib"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import re"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [],
   "source": [
    "def getHtmlContent(url):\n",
    "    page = urllib.request.urlopen(url)\n",
    "    html = page.read().decode()\n",
    "    #print(html)\n",
    "    return html"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "def getJPGs(html):\n",
    "    jpgReg = re.compile(r'<img.+?src=\"(.+?\\.jpg)\"')\n",
    "    jpgs = re.findall(jpgReg, html)\n",
    "    return jpgs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b150_150&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=c55dd5519b472cb9f5d9fece88fc2bf0&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Fd31b0ef41bd5ad6e4ae168d987cb39dbb6fd3cec.jpg',\n",
       " 'https://imgsa.baidu.com/forum/pic/item/94eef01f3a292df5890eb88db2315c6035a8735c.jpg',\n",
       " '\" attr=\"25700\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=965fb6c21e3853438c9a8f23a3239c47/88013af33a87e950965fb6c21e385343faf2b4d1.jpg',\n",
       " '\" attr=\"56372\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=01c2a03c02f431adbc874b3b7b068096/a9dca144ad34598201c2a03c02f431adcaef84d1.jpg',\n",
       " '\" attr=\"8174\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=4f5fef5537dbb6fd250eed2439148721/30f51bd5ad6eddc44f5fef5537dbb6fd536633e0.jpg',\n",
       " '\" attr=\"64192\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=9dcc8572af44ad342eea8f85e09220cd/8e7fca8065380cd79dcc8572af44ad345882815b.jpg',\n",
       " '\" attr=\"57184\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=f32d0cb1b0096b63814c56523c03ab7d/4c0f0cf3d7ca7bcbf32d0cb1b0096b63f724a8d8.jpg',\n",
       " '\" attr=\"32539\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=087440a76563f6241c083101b774c7c1/32f2d7ca7bcb0a46087440a76563f6246a60afd8.jpg',\n",
       " '\" attr=\"7700\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=456295cdf8246b607b5bba76dbc83675/e9cb7bcb0a46f21f456295cdf8246b600d33aed8.jpg',\n",
       " '\" attr=\"62346\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=8c2735d28c26cffc697fb7b0893166a9/47300a55b319ebc48c2735d28c26cffc1e17161a.jpg',\n",
       " '\" attr=\"9359\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=b32e72a1c695d143da23ec2143c0ae3b/45889e510fb30f24b32e72a1c695d143ac4b03d9.jpg',\n",
       " '\" attr=\"49437\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=2f782b93526034a829b7b083fb23656d/ce1e3a292df5e0fe2f782b93526034a85fdf72c5.jpg',\n",
       " '\" attr=\"36437\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=68433f71f31f4134e0620d7c152fb9f3/823fb13533fa828b68433f71f31f4134960a5ac5.jpg',\n",
       " '\" attr=\"56567\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=e757dc94a2af2eddd4a441ebbd202dd0/eea30cf431adcbefe757dc94a2af2edda2cc9fc6.jpg',\n",
       " 'https://gss3.baidu.com/6LZ0ej3k1Qd3ote6lo7D0j9wehsv/tieba-video-frame/410677280_1f7fff194fbdda3962b00d9d8bfba781_5217a651d69a_001.jpg',\n",
       " '\" attr=\"83046\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=f97036e28fcb39dbc1956f54e026251d/ec1a0ef41bd5ad6ef97036e28fcb39dbb6fd3c29.jpg',\n",
       " '\" attr=\"83153\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=54eaff5bde160924dc70aa19e43719c3/e3c551da81cb39db54eaff5bde160924ab183092.jpg',\n",
       " '\" attr=\"28810\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=a5f07e5edfc8a786be7f420c5739e504/c31e4134970a304ea5f07e5edfc8a786c8175c41.jpg',\n",
       " '\" attr=\"94523\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=d839ba5fdb62853592b5da23a0df5aff/6ae636d12f2eb938d839ba5fdb628535e4dd6fcc.jpg',\n",
       " '\" attr=\"59759\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=f4d8e6807f8b4710ce7af5cef3feefc4/05c69f3df8dcd100f4d8e6807f8b4710b8122fcf.jpg',\n",
       " '\" attr=\"84796\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=8268591a4a10b912bf94fefcf3cdd03a/a13cf8dcd100baa18268591a4a10b912c9fc2ecf.jpg',\n",
       " '\" attr=\"13069\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=22f26c81b412c8fcb4a6fecfcc33be7c/c6ddd100baa1cd1122f26c81b412c8fcc2ce2dcf.jpg',\n",
       " '\" attr=\"24545\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=3111cb967d8da9774e7a8e298061d420/f1fd1e178a82b9013111cb967d8da9773812efdc.jpg',\n",
       " '\" attr=\"32664\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=bb23e1f7bd19ebc4c02d7e9bb216e3c5/3d4e78f0f736afc3bb23e1f7bd19ebc4b7451272.jpg',\n",
       " '\" attr=\"733\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=7e3decaa26381f309e4c85ab99316031/b900a18b87d6277f7e3decaa26381f30e924fc73.jpg',\n",
       " '\" attr=\"31518\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=f45ff27ab23eb1354492bfb9962e84ea/a283d158ccbf6c81f45ff27ab23eb13533fa403d.jpg',\n",
       " '\" attr=\"79223\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=a09fecffdf43ad4ba67b4ec2b2327696/a0500fb30f2442a7a09fecffdf43ad4bd01302d3.jpg',\n",
       " '\" attr=\"24841\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=ca1ad1abbdde9c82a630f18d5cb1ac33/77550923dd54564eca1ad1abbdde9c82d1584f21.jpg',\n",
       " '\" attr=\"39315\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=fe2430ec2b1f95caa6a09ab4f9275307/981fa8d3fd1f4134fe2430ec2b1f95cad1c85e15.jpg',\n",
       " '\" attr=\"15018\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=d2ff627bfcd3572c66b794deba234f1e/23940a7b02087bf4d2ff627bfcd3572c11dfcf16.jpg',\n",
       " '\" attr=\"6371\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=59ecfa4c54afa40f3c93c6df9b542f76/f694d143ad4bd11359ecfa4c54afa40f4bfb05af.jpg',\n",
       " '\" attr=\"74947\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=9801f59b44540923aa3c6b7ca268fd30/82305c6034a85edf9801f59b44540923dc5475fd.jpg',\n",
       " '\" attr=\"70600\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=cd7bed00f8246b607b5bba76dbc83675/e9cb7bcb0a46f21fcd7bed00f8246b600c33ae13.jpg',\n",
       " '\" attr=\"50052\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=b599347f8901a18bf0be1a4dae1f2b31/087bdab44aed2e73b599347f8901a18b87d6fa76.jpg',\n",
       " '\" attr=\"647\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=6e759853e724b899de69713a5e3631ac/b9d7277f9e2f07086e759853e724b899a901f276.jpg',\n",
       " 'https://imgsa.baidu.com/forum/pic/item/b48f8c5494eef01fdf888b73ebfe9925bd317dec.jpg',\n",
       " '\" attr=\"26971\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=7c9a861690510fb3784c7f95e903e4ac/9519972bd40735fa7c9a861690510fb30f24083c.jpg',\n",
       " '\" attr=\"58226\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=c3cc75fef5edab64742745c2c70683fa/ef1273f082025aafc3cc75fef5edab64034f1a0d.jpg',\n",
       " '\" attr=\"64839\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=2b00899f3701213fcf6646de64d71ae8/92ae2edda3cc7cd92b00899f3701213fb80e914c.jpg',\n",
       " '\" attr=\"84155\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=a038fb3ea251f3dec3e7b166a4dedc26/aeee76c6a7efce1ba038fb3ea251f3deb48f6537.jpg',\n",
       " '\" attr=\"90764\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=34be09fb8e0a19d8cb568c0703caaeb2/ef08b3de9c82d15834be09fb8e0a19d8bc3e42b9.jpg',\n",
       " '\" attr=\"72539\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=eb5a3418d3c451daf6a304e986cd7e5f/9ac37d1ed21b0ef4eb5a3418d3c451da80cb3ec3.jpg',\n",
       " '\" attr=\"46501\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=7b5f177278094b36dbc713ef93fc50e0/6783b2b7d0a20cf47b5f177278094b36adaf9955.jpg',\n",
       " '\" attr=\"122\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=76fd9da9990a304e5277a8f8e1f88bbf/0dfb828ba61ea8d376fd9da9990a304e241f5845.jpg',\n",
       " '\" attr=\"21975\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=4972082b6281800a6eb0810c81051fc3/ac59d109b3de9c824972082b6281800a19d84304.jpg',\n",
       " '\" attr=\"82937\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=bb87550ca0345982c5dfed903cc41d94/f48165380cd79123bb87550ca0345982b2b78060.jpg',\n",
       " '\" attr=\"56688\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=cfaa037ea2c379317d3d8e2bdbf49b7c/75fafbedab64034fcfaa037ea2c379310a551d60.jpg',\n",
       " '\" attr=\"5021\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=cc1e39ad6d59252da342150604ab2f02/b945ebf81a4c510fcc1e39ad6d59252dd52aa5b4.jpg',\n",
       " '\" attr=\"66090\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=2347ab60e8cd7b89e93932813f146e9e/ee170924ab18972b2347ab60e8cd7b899e510a18.jpg',\n",
       " '\" attr=\"85498\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=7dcd3ea0289759ee4a0568c982cb6f2f/5cd1f703918fa0ec7dcd3ea0289759ee3d6ddb12.jpg',\n",
       " '\" attr=\"99543\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=a4e65147b8fd5266a77e34169b28bb12/25d4ad6eddc451daa4e65147b8fd5266d016320e.jpg',\n",
       " '\" attr=\"25848\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=9a2ad2000746f21fc9615651c6144759/ae539822720e0cf39a2ad2000746f21fbf09aa69.jpg',\n",
       " '\" attr=\"70294\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=4f3a55bf4ca7d933bffdec719d7bfd2a/0bfbe6cd7b899e514f3a55bf4ca7d933c9950de1.jpg',\n",
       " '\" attr=\"12612\" data-original=\"https://imgsa.baidu.com/forum/wh%3D200%2C90%3B/sign=dd4331d476f0f736d8ab44033a659f20/64aea40f4bfbfbeddd4331d476f0f736afc31f07.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=122cfcb5651835ddbeee152e1ceb4932&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Fcefc1e178a82b901d77b940c778da9773912ef3f.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=c5ad85c377a839d8d574236cf1aa7fad&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F574e9258d109b3de25d432f4c6bf6c81810a4cc7.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=29136f2028aebce09df6545d1cedf0b3&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F8ad4b31c8701a18bcaf6e19b9f2f07082938fec1.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=2a7578a720ebb09043619b7d21eb48a2&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Ff9096b63f6246b60428b29f0edf81a4c500fa2a9.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=5cb1e163bbe7a97b03c2a704440bf452&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Ff7246b600c338744fbbc2313500fd9f9d72aa067.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=55cbd3e664f5e3454fbe0f3eb687987b&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Fa686c9177f3e6709d8a8da3539c79f3df9dc554b.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=1b539286ccc0a3e3b6331c3ca338d2bc&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Fdbb44aed2e738bd4fa6244bca48b87d6267ff9f8.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=1640f1179a3bbc28afb0d2da31cd46c7&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F8ad4b31c8701a18b4b721a32952f07082838fe36.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=f208ea84a1ed8e5f710a89f3f67cd3b3&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Faa64034f78f0f736a4a890f80955b319eac413f0.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=fdd55812777c1e4641b522eec50b2862&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F9f510fb30f2442a7f2177f03d743ad4bd113027e.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=9ec5d3c8a9d43e7b935f72a10ad66153&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F8b82b9014a90f60390aeb31d3112b31bb051ed4a.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=df7c3ebec90b4f2a13cca72feafa2baa&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F838ba61ea8d3fd1fc5f7b29a3a4e251f94ca5f97.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=84935715bb7a4903a45c433112c8cb5b&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Fd1a20cf431adcbef482e7fe3adaf2edda3cc9f38.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=dc0c75ebf9dc65537c2ee2ef49c281c0&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F3b292df5e0fe99258b04001032a85edf8db17161.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=ae7df6a71467b20fc089fb04229aa289&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F279759ee3d6d55fb9536463364224f4a20a4dd36.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=fbe718cba7c378739b5f573da4b34844&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F8319ebc4b74543a9cf57b39118178a82b901141a.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=2b4d40933c0e85356445a845c2084ecb&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F0df3d7ca7bcb0a46447e3b486363f6246b60af67.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=87dbdbe2b44941a56d9c9aa6a8222af2&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Fb03533fa828ba61e0e2cfc5b4b34970a314e5987.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=46a9ecea7f3f320ca60136da60139d52&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2Fb7fd5266d0160924eab20b4bd50735fae7cd34ce.jpg',\n",
       " 'https://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?wapp&amp;quality=80&amp;size=b65_65&amp;subsize=20480&amp;cut_x=0&amp;cut_w=0&amp;cut_y=0&amp;cut_h=0&amp;sec=1369815402&amp;srctrace&amp;di=9a404f114feb2d27f75de2e21124eb51&amp;wh_rate=null&amp;src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fpic%2Fitem%2F838ba61ea8d3fd1f512f3608324e251f95ca5fd9.jpg',\n",
       " 'https://imgsa.baidu.com/forum/wh%3D60%2C60%3B/sign=cd8aa5f4a4d3fd1f365caa3c0062132f/b7003af33a87e9507a2bc5b61c385343fbf2b42f.jpg',\n",
       " 'https://imgsa.baidu.com/forum/wh%3D60%2C60%3B/sign=b842f14c334e251fe2a2ecfe97aaff27/342ac65c103853430284d4579013b07eca808879.jpg',\n",
       " 'https://imgsa.baidu.com/forum/wh%3D60%2C60%3B/sign=70b3ee25af18972ba36f08ccd6e14db9/e4dde71190ef76c6074a291a9916fdfaaf516763.jpg',\n",
       " 'https://imgsa.baidu.com/forum/wh%3D60%2C60%3B/sign=63250aebc1177f3e1061f40b40e30df7/b3119313b07eca80d7d5a1ba992397dda044839f.jpg',\n",
       " 'https://imgsa.baidu.com/forum/wh%3D60%2C60%3B/sign=f8329b44cb177f3e1061f40b40e30df7/b3119313b07eca804cc23015932397dda0448378.jpg',\n",
       " 'https://imgsa.baidu.com/forum/wh%3D60%2C60%3B/sign=62e116de09d162d985bb6a1a21f39fdc/9345d688d43f8794c42b1034d11b0ef41ad53ad7.jpg']"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "getJPGs(getHtmlContent('https://tieba.baidu.com/f?kw=%E6%A1%8C%E9%9D%A2'))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
